<HTML>
    <HEAD>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <title>磁盘测试页面</title>
  <script type="text/javascript" src="./js/service.js"></script>
  <script type="text/javascript" src="/usr/share/javascript/jquery/jquery.min.js"></script>
      <TITLE>磁盘测试页面</TITLE>
      <SCRIPT language=JavaScript>
              function getDiskList(){
                  var test = serviceT.getDiskList();
                  document.getElementById("res").value = test;
              }
              function getDiskSectorSize(){
                  pid = $("#pid").val()
                  console.log(pid);
                  var test = serviceT.getDiskSectorSize(pid);
                  document.getElementById("res").value = test;
              }
              function getDiskTotalSizeMiB(){
                  pid = $("#pid").val()
                  console.log(pid);
                  var test = serviceT.getDiskTotalSizeMiB(pid);
                  document.getElementById("res").value = test;
              }
              function getDiskModel(){
                  pid = $("#pid").val()
                  console.log(pid);
                  var test = serviceT.getDiskModel(pid);
                  document.getElementById("res").value = test;
              }
              function getDiskSerial(){
                  pid = $("#pid").val()
                  console.log(pid);
                  var test = serviceT.getDiskSerial(pid);
                  document.getElementById("res").value = test;
              }
              function getDiskPartitionNums(){
                  pid = $("#pid").val()
                  console.log(pid);
                  var test = serviceT.getDiskPartitionNums(pid);
                  document.getElementById("res").value = test;
              }
              function getDiskType(){
                  pid = $("#pid").val()
                  console.log(pid);
                  var test = serviceT.getDiskType(pid);
                  document.getElementById("res").value = test;
              }
              function getDiskVersion(){
                  pid = $("#pid").val()
                  console.log(pid);
                  var test = serviceT.getDiskVersion(pid);
                  document.getElementById("res").value = test;
              }
              function getDiskSectorNum(){
                  pid = $("#pid").val()
                  console.log(pid);
                  var test = serviceT.getDiskSectorNum(pid);
                  document.getElementById("res").value = test;
              }
              
        //-->
      </SCRIPT>
      <META content="MSHTML 6.00.2900.6287" name=GENERATOR>
      <style>
        table tr td{padding: 5px;}
      </style>
  
    </HEAD>
    <BODY>
      <div style="margin:30 5 20 5">
        <div>
          <input onclick="getDiskList()" type="button" value="磁盘列表"  style="width: 100px; height: 50px">
          <input onclick="getDiskSectorSize()" type="button" value="每个扇区的字节数"  style="width: 120px; height: 50px">
          <input onclick="getDiskTotalSizeMiB()" type="button" value="磁盘容量"  style="width: 100px; height: 50px">
          <input onclick="getDiskModel()" type="button" value="磁盘型号"  style="width: 100px; height: 50px">
          <input onclick="getDiskSerial()" type="button" value="磁盘序列号"  style="width: 100px; height: 50px">
          <input onclick="getDiskPartitionNums()" type="button" value="磁盘/分区下的子分区数量"  style="width: 120px; height: 50px">
          <input onclick="getDiskType()" type="button" value="磁盘类型"  style="width: 100px; height: 50px">
          <input onclick="getDiskVersion()" type="button" value="固件版本信息"  style="width: 100px; height: 50px">
          <input onclick="getDiskSectorNum()" type="button" value="磁盘扇区数量"  style="width: 100px; height: 50px">
        </div>
        <div id="input_box2">
            <h3>磁盘名称:</h3>
            <label>
              <input type="text" id="pid" style="height: 30px; width: 200px;" placeholder="输入磁盘名称">
            </label>
          </div>
        <div style="margin-top:20">
          <div align=left style="margin:5 0 5 0">回复：</div>
          <div>
          <textarea id="res" style="width:1000px;height:500px" ></textarea>
          </div>
        </div>
      </div>
    </BODY>
  </HTML>
  